Skip to content

Fix: Complete futures on shutdown#746

Closed
acocuzzo wants to merge 7 commits intogoogleapis:mainfrom
acocuzzo:complete-futures-on-shutdown
Closed

Fix: Complete futures on shutdown#746
acocuzzo wants to merge 7 commits intogoogleapis:mainfrom
acocuzzo:complete-futures-on-shutdown

Conversation

@acocuzzo
Copy link
Contributor

@acocuzzo acocuzzo commented Jul 26, 2022

Set "shutdown_mode" in the dispatcher. During this mode, set_exception(AcknowledgeError.OTHER) on dispatched callbacks.
When unary acks, modack, and nacks are returned check they are not already completed.

Fixes googleapis/google-cloud-python#15651🦕

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: pubsub Issues related to the googleapis/python-pubsub API. labels Jul 26, 2022
@acocuzzo acocuzzo changed the title Complete futures on shutdown Fix: Complete futures on shutdown Jul 26, 2022
@acocuzzo acocuzzo mentioned this pull request Jul 26, 2022
4 tasks
@mukund-ananthu mukund-ananthu added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 27, 2024
@parthea
Copy link
Contributor

parthea commented Feb 26, 2026

Closing stale PRs to prepare for the code migration to google-cloud-python. Please feel free to re-open this PR if this is actively being worked on, or open a new PR after the code has migrated to google-cloud-python.

@parthea parthea closed this Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the googleapis/python-pubsub API. do not merge Indicates a pull request not ready for merge, due to either quality or timing. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complete futures on irregular stream shutdown

4 participants